<?
class CategoryBO extends BusinessObject{

  /* private function using in constructors */ 
  function setAttributes(){
	$this->fields	= array(
		'id'		 => 'catID',
		'parent'   => 'catParentID',
		'position' => 'catPosition',
		'visible'  => 'catVisible',
		'cattype'  => 'catType',
		'pageID'   => 'catPageID',
		'caturl'   => 'catURL',
		'menuNumber' => 'catMenuNum'
		);

	$cl= new CategoryLangBO();
	$this->relations = array("{$cl->tableName}" =>"{$cl->tableName}.{$cl->fields['id']} = {$this->tableName}.{$this->fields['id']}");
	BusinessObject::setAttributes();
  }

  /* constructor */
  function CategoryBO(){
	/** super(tableName) */
	BusinessObject::BusinessObject("category");
	$this->setAttributes();
  }
}
?>
